export const constantRouter = [
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login/index.vue'),
  },
  {
    path: '/',
    name: 'home',
    component: () => import('../views/home/index.vue'),
    meta: {
      isShow: false,
      title: '',
      // icon: 'index',
    },
    redirect:'/index',
    
    children: [
      {
        path: '/index',
        name: 'Index',
        meta: {
          isShow: true,
          title: '首页',
          icon: 'House',
        },
        component: () => import('../views/home/Index/index.vue'),
      },
      {
        path: '/goods',
        name: 'goods',
        meta: {
          title: '商品菜单',
          isShow: true,
          icon: 'Box',
        },
        children: [
          {
            path: '/goods/goodsand',
            name: 'goods',
            meta: {
              title: '商品管理',
              // icon: 'Document',
            },
            component: () => import('../views/home/Goods/index.vue'),
            children: [],
          },
          {
            path: '/goods/addgoods',
            name: 'Add',
            meta: {
              title: '商品添加',
              // icon: 'Edit',
    
            },
            component: () => import('../views/home/AddGoods/index.vue'),
            children: [],
          },
        ],
      },
      {
        path: '/user',
        name: 'User',
        meta: {
          title: '用户管理',
          isShow: true,
          icon: 'User',
    
        },
        component: () => import('../views/home/User/index.vue'),
      },
      {
        path: '/excel',
        name: 'Excel',
        meta: {
          title: 'EXCEL',
          isShow: true,
          icon: 'User',
    
        },
        component: () => import('../views/EXCEL/Excel.vue'),
      },
      
     
    ],
  },
  {
    path: '/visual',
        name: 'visual',
        meta: {
          isShow: true,
          title: '数据可视化',
          icon: 'Monitor',
        },
        component: () => import('../views/visual/index.vue'),
  },
  {
    path: '/adaptive',
        name: 'adaptive',
        meta: {
          isShow: true,
          title: '大屏适配',
          icon: 'Monitor',
        },
        component: () => import('../views/Adaptive/index.vue'),
  },
  {
    path: '/vr',
    name: 'VR',
    meta: {
      title: 'VR看房',
      isShow: true,
      icon: 'User',

    },
    component: () => import('../views/Vr/VR.vue'),
  },
  {
    path: '/404',
    component: () => import('../views/404/index.vue'),
    name: '404',
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any',
  },
]
